﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package reprise.css {

    public class CSSParsingResult {

        protected var m_properties:Object;

        public function CSSParsingResult(){
            m_properties = {};
        }
        public function properties():Object{
            return (m_properties);
        }
        public function toString():String{
            var _local2:String;
            var _local1 = "";
            for (_local2 in m_properties) {
                _local1 = (_local1 + (((_local2 + ": ") + m_properties[_local2]) + "\n"));
            };
            return (_local1);
        }
		public function addEntriesFromResult(_arg1:CSSParsingResult):void{
            var _local3:String;
            var _local2:Object = _arg1.properties();
            for (_local3 in _local2) {
                addPropertyForKey(_local2[_local3], _local3);
            };
        }
		public function propertyForKey(_arg1:String):CSSProperty{
            return (CSSProperty(m_properties[_arg1]));
        }
		public function addPropertyForKey(_arg1:CSSProperty, _arg2:String):void{
            m_properties[_arg2] = _arg1;
        }

		public static function ResultWithPropertiesAndKeys(... _args):CSSParsingResult{
            var _local4:CSSProperty;
            var _local5:String;
            var _local2:CSSParsingResult = new (CSSParsingResult);
            var _local3:int;
            while (_local3 < _args.length) {
                _local4 = _args[_local3];
                _local5 = _args[(_local3 + 1)];
                if (((!((_local4 is CSSProperty))) || (!(("string" == "string"))))){
                    log(("WARNING! Wrong type of parameters in ResultWithPropertiesAndKeys. Please make sure " + " you're passing instances of CSSProperty and String in alternating order"));
                } else {
                    _local2.addPropertyForKey(_local4, _local5);
                };
                _local3 = (_local3 + 2);
            };
            return (_local2);
        }

    }
}//package reprise.css 
